package lex.title.basic;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

class WindowActiveListener extends WindowAdapter {
	private final BasicWindowTitle title;

	WindowActiveListener(BasicWindowTitle pane) {
		this.title = pane;
	}

	public void windowActivated(WindowEvent ev) {
		this.title.setActive(true);
	}

	public void windowDeactivated(WindowEvent ev) {
		this.title.setActive(false);
	}
}